<? if (!$this->session->userdata('logged_in')) redirect('auth/login'); ?>
<? if ($this->session->userdata('type') <= 2) redirect('noaccess'); ?>
<center>
<h1>Admin</h1>
<table><tr><td>
<h2>Zdravotný personál
<?php 
	echo "<p>".form_open('admin/pridaj_personal');
    echo form_submit('submit', 'Pridaj');
    echo form_close();
	echo '</p>';
	
	echo "<p>".form_open('odstranenie_personalu');
    echo form_submit('submit', 'Odober');
    echo form_close();
	echo '</p>';
?>
<h2>Zoznam jedál</h2>
	
    <?
	echo "<p>".form_open('admin/export');
    echo form_submit('submit', 'Stiahnuť');
    echo form_close();
	echo '</p>';
	
	 //echo $error;

 echo form_open_multipart('admin/do_upload');?>
<p>Nahrať: 
<input type="file" name="userfile" size="20" />


<input type="submit" value="OK" />

</form></p>
</td></td></table>

</center>